<script setup>
//在Vue3 CompositionAPI 中
//1.获取路由对象 router useRouter
//  const router = useRouter()
//2.获取路由信息 useRoute
//  const route = useRoute()

// import { useRoute, useRouter } from 'vue-router'
// import { useUserStore,useCountStore } from '@/stores'

// const route = useRoute()
// const router = useRouter()
// const goList = () => {
//   console.log(route, router),
//     router.push('/list')
// }
// const userStore = useUserStore()
// const countStore = useCountStore()
</script>

<template>

  
  <router-view></router-view>
  
  <!-- <div>我是AppApp
    <el-button @click="$router.push('/home')">条首页</el-button>
    <el-button @click="goList('/list')">去列表页</el-button>

    <p>{{ userStore.token }}</p>
    <el-button @click="userStore.setToken('2121221')">登入</el-button>
    <el-button @click="userStore.removeToken('')">推出</el-button>

    <P>{{ countStore.count }}</P>
    <el-button @click="countStore.add(1)"> 加一</el-button>
  </div> -->
</template>

<style scoped></style>
